import type { DocDetail } from '@/types/healthEncyclopedia';
import type { patient } from '@/types/home';
import { http } from '@/utils/request';
// 医生详情
export const getDocDetailBydocIdAPI = (docId: string) =>
  http<DocDetail>(`doc/detail`, 'GET', {
    docId,
  });
// 医生文章
export const getPatientKnowledgePageAPI = (
  current: number,
  pageSize: number,
  docId: string
) =>
  http<patient>('patient/knowledge/page?', 'GET', { current, pageSize, docId });
// 关注
export const postLikeAPI = (id: string, type: string) =>
  http<patient>('/like', 'POST', { id, type });
// 上传图片
export const postUploadAPI = (file: FormData) => http('/upload', 'POST', file);
